Optimal. Leaf size=167 \[ -\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}+\frac {2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{e^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 167, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {79, 49, 65, 223,
212} \begin {gather*} -\frac {2 (a+b x)^{7/2} (B d-A e)}{7 e (d+e x)^{7/2} (b d-a e)}+\frac {2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{e^{9/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 65
Rule 79
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {(a+b x)^{5/2} (A+B x)}{(d+e x)^{9/2}} \, dx &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}+\frac {B \int \frac {(a+b x)^{5/2}}{(d+e x)^{7/2}} \, dx}{e}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}+\frac {(b B) \int \frac {(a+b x)^{3/2}}{(d+e x)^{5/2}} \, dx}{e^2}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}+\frac {\left (b^2 B\right ) \int \frac {\sqrt {a+b x}}{(d+e x)^{3/2}} \, dx}{e^3}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}+\frac {\left (b^3 B\right ) \int \frac {1}{\sqrt {a+b x} \sqrt {d+e x}} \, dx}{e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}+\frac {\left (2 b^2 B\right ) \text {Subst}\left (\int \frac {1}{\sqrt {d-\frac {a e}{b}+\frac {e x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}+\frac {\left (2 b^2 B\right ) \text {Subst}\left (\int \frac {1}{1-\frac {e x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {d+e x}}\right )}{e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{7 e (b d-a e) (d+e x)^{7/2}}-\frac {2 B (a+b x)^{5/2}}{5 e^2 (d+e x)^{5/2}}-\frac {2 b B (a+b x)^{3/2}}{3 e^3 (d+e x)^{3/2}}-\frac {2 b^2 B \sqrt {a+b x}}{e^4 \sqrt {d+e x}}+\frac {2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{e^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.40, size = 215, normalized size = 1.29 \begin {gather*} -\frac {2 \sqrt {a+b x} \left (-15 B d e^3 (a+b x)^3+15 A e^4 (a+b x)^3-21 b B d e^2 (a+b x)^2 (d+e x)+21 a B e^3 (a+b x)^2 (d+e x)-35 b^2 B d e (a+b x) (d+e x)^2+35 a b B e^2 (a+b x) (d+e x)^2-105 b^3 B d (d+e x)^3+105 a b^2 B e (d+e x)^3\right )}{105 e^4 (-b d+a e) (d+e x)^{7/2}}+\frac {2 b^{5/2} B \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {d+e x}}{\sqrt {e} \sqrt {a+b x}}\right )}{e^{9/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1088\) vs.
\(2(133)=266\).
time = 0.21, size = 1089, normalized size = 6.52
method | result | size |
default | \(-\frac {\sqrt {b x +a}\, \left (420 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) b^{4} d^{2} e^{3} x^{3}+630 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) b^{4} d^{3} e^{2} x^{2}+420 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) b^{4} d^{4} e x -105 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) a \,b^{3} d^{4} e +30 A \,b^{3} e^{4} x^{3} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+42 B \,a^{3} e^{4} x \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+12 B \,a^{3} d \,e^{3} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-105 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) a \,b^{3} e^{5} x^{4}+105 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) b^{4} d \,e^{4} x^{4}+105 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) b^{4} d^{5}+568 B a \,b^{2} d \,e^{3} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+92 B \,a^{2} b d \,e^{3} x \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+476 B a \,b^{2} d^{2} e^{2} x \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+30 A \,a^{3} e^{4} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-210 B \,b^{3} d^{4} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+154 B \,a^{2} b \,e^{4} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-812 B \,b^{3} d^{2} e^{2} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+90 A \,a^{2} b \,e^{4} x \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-700 B \,b^{3} d^{3} e x \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+28 B \,a^{2} b \,d^{2} e^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+140 B a \,b^{2} d^{3} e \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-420 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) a \,b^{3} d \,e^{4} x^{3}-630 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) a \,b^{3} d^{2} e^{3} x^{2}-420 B \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+a e +b d}{2 \sqrt {b e}}\right ) a \,b^{3} d^{3} e^{2} x +322 B a \,b^{2} e^{4} x^{3} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}-352 B \,b^{3} d \,e^{3} x^{3} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}+90 A a \,b^{2} e^{4} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {b e}\right )}{105 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \left (a e -b d \right ) \sqrt {b e}\, \left (e x +d \right )^{\frac {7}{2}} e^{4}}\) | \(1089\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 498 vs.
\(2 (134) = 268\).
time = 13.62, size = 1012, normalized size = 6.06 \begin {gather*} \left [\frac {105 \, {\left (B b^{3} d^{5} - B a b^{2} x^{4} e^{5} + {\left (B b^{3} d x^{4} - 4 \, B a b^{2} d x^{3}\right )} e^{4} + 2 \, {\left (2 \, B b^{3} d^{2} x^{3} - 3 \, B a b^{2} d^{2} x^{2}\right )} e^{3} + 2 \, {\left (3 \, B b^{3} d^{3} x^{2} - 2 \, B a b^{2} d^{3} x\right )} e^{2} + {\left (4 \, B b^{3} d^{4} x - B a b^{2} d^{4}\right )} e\right )} \sqrt {b} e^{\left (-\frac {1}{2}\right )} \log \left (b^{2} d^{2} + 4 \, {\left (b d e + {\left (2 \, b x + a\right )} e^{2}\right )} \sqrt {b x + a} \sqrt {x e + d} \sqrt {b} e^{\left (-\frac {1}{2}\right )} + {\left (8 \, b^{2} x^{2} + 8 \, a b x + a^{2}\right )} e^{2} + 2 \, {\left (4 \, b^{2} d x + 3 \, a b d\right )} e\right ) - 4 \, {\left (105 \, B b^{3} d^{4} - {\left (15 \, A a^{3} + {\left (161 \, B a b^{2} + 15 \, A b^{3}\right )} x^{3} + {\left (77 \, B a^{2} b + 45 \, A a b^{2}\right )} x^{2} + 3 \, {\left (7 \, B a^{3} + 15 \, A a^{2} b\right )} x\right )} e^{4} + 2 \, {\left (88 \, B b^{3} d x^{3} - 142 \, B a b^{2} d x^{2} - 23 \, B a^{2} b d x - 3 \, B a^{3} d\right )} e^{3} + 14 \, {\left (29 \, B b^{3} d^{2} x^{2} - 17 \, B a b^{2} d^{2} x - B a^{2} b d^{2}\right )} e^{2} + 70 \, {\left (5 \, B b^{3} d^{3} x - B a b^{2} d^{3}\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d}}{210 \, {\left (b d^{5} e^{4} - a x^{4} e^{9} + {\left (b d x^{4} - 4 \, a d x^{3}\right )} e^{8} + 2 \, {\left (2 \, b d^{2} x^{3} - 3 \, a d^{2} x^{2}\right )} e^{7} + 2 \, {\left (3 \, b d^{3} x^{2} - 2 \, a d^{3} x\right )} e^{6} + {\left (4 \, b d^{4} x - a d^{4}\right )} e^{5}\right )}}, -\frac {105 \, {\left (B b^{3} d^{5} - B a b^{2} x^{4} e^{5} + {\left (B b^{3} d x^{4} - 4 \, B a b^{2} d x^{3}\right )} e^{4} + 2 \, {\left (2 \, B b^{3} d^{2} x^{3} - 3 \, B a b^{2} d^{2} x^{2}\right )} e^{3} + 2 \, {\left (3 \, B b^{3} d^{3} x^{2} - 2 \, B a b^{2} d^{3} x\right )} e^{2} + {\left (4 \, B b^{3} d^{4} x - B a b^{2} d^{4}\right )} e\right )} \sqrt {-b e^{\left (-1\right )}} \arctan \left (\frac {{\left (b d + {\left (2 \, b x + a\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d} \sqrt {-b e^{\left (-1\right )}}}{2 \, {\left (b^{2} d x + a b d + {\left (b^{2} x^{2} + a b x\right )} e\right )}}\right ) + 2 \, {\left (105 \, B b^{3} d^{4} - {\left (15 \, A a^{3} + {\left (161 \, B a b^{2} + 15 \, A b^{3}\right )} x^{3} + {\left (77 \, B a^{2} b + 45 \, A a b^{2}\right )} x^{2} + 3 \, {\left (7 \, B a^{3} + 15 \, A a^{2} b\right )} x\right )} e^{4} + 2 \, {\left (88 \, B b^{3} d x^{3} - 142 \, B a b^{2} d x^{2} - 23 \, B a^{2} b d x - 3 \, B a^{3} d\right )} e^{3} + 14 \, {\left (29 \, B b^{3} d^{2} x^{2} - 17 \, B a b^{2} d^{2} x - B a^{2} b d^{2}\right )} e^{2} + 70 \, {\left (5 \, B b^{3} d^{3} x - B a b^{2} d^{3}\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d}}{105 \, {\left (b d^{5} e^{4} - a x^{4} e^{9} + {\left (b d x^{4} - 4 \, a d x^{3}\right )} e^{8} + 2 \, {\left (2 \, b d^{2} x^{3} - 3 \, a d^{2} x^{2}\right )} e^{7} + 2 \, {\left (3 \, b d^{3} x^{2} - 2 \, a d^{3} x\right )} e^{6} + {\left (4 \, b d^{4} x - a d^{4}\right )} e^{5}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 635 vs.
\(2 (134) = 268\).
time = 1.89, size = 635, normalized size = 3.80 \begin {gather*} -2 \, B b^{\frac {3}{2}} {\left | b \right |} e^{\left (-\frac {9}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right ) - \frac {2 \, {\left ({\left ({\left (b x + a\right )} {\left (\frac {{\left (176 \, B b^{10} d^{3} {\left | b \right |} e^{6} - 513 \, B a b^{9} d^{2} {\left | b \right |} e^{7} - 15 \, A b^{10} d^{2} {\left | b \right |} e^{7} + 498 \, B a^{2} b^{8} d {\left | b \right |} e^{8} + 30 \, A a b^{9} d {\left | b \right |} e^{8} - 161 \, B a^{3} b^{7} {\left | b \right |} e^{9} - 15 \, A a^{2} b^{8} {\left | b \right |} e^{9}\right )} {\left (b x + a\right )}}{b^{5} d^{3} e^{7} - 3 \, a b^{4} d^{2} e^{8} + 3 \, a^{2} b^{3} d e^{9} - a^{3} b^{2} e^{10}} + \frac {406 \, {\left (B b^{11} d^{4} {\left | b \right |} e^{5} - 4 \, B a b^{10} d^{3} {\left | b \right |} e^{6} + 6 \, B a^{2} b^{9} d^{2} {\left | b \right |} e^{7} - 4 \, B a^{3} b^{8} d {\left | b \right |} e^{8} + B a^{4} b^{7} {\left | b \right |} e^{9}\right )}}{b^{5} d^{3} e^{7} - 3 \, a b^{4} d^{2} e^{8} + 3 \, a^{2} b^{3} d e^{9} - a^{3} b^{2} e^{10}}\right )} + \frac {350 \, {\left (B b^{12} d^{5} {\left | b \right |} e^{4} - 5 \, B a b^{11} d^{4} {\left | b \right |} e^{5} + 10 \, B a^{2} b^{10} d^{3} {\left | b \right |} e^{6} - 10 \, B a^{3} b^{9} d^{2} {\left | b \right |} e^{7} + 5 \, B a^{4} b^{8} d {\left | b \right |} e^{8} - B a^{5} b^{7} {\left | b \right |} e^{9}\right )}}{b^{5} d^{3} e^{7} - 3 \, a b^{4} d^{2} e^{8} + 3 \, a^{2} b^{3} d e^{9} - a^{3} b^{2} e^{10}}\right )} {\left (b x + a\right )} + \frac {105 \, {\left (B b^{13} d^{6} {\left | b \right |} e^{3} - 6 \, B a b^{12} d^{5} {\left | b \right |} e^{4} + 15 \, B a^{2} b^{11} d^{4} {\left | b \right |} e^{5} - 20 \, B a^{3} b^{10} d^{3} {\left | b \right |} e^{6} + 15 \, B a^{4} b^{9} d^{2} {\left | b \right |} e^{7} - 6 \, B a^{5} b^{8} d {\left | b \right |} e^{8} + B a^{6} b^{7} {\left | b \right |} e^{9}\right )}}{b^{5} d^{3} e^{7} - 3 \, a b^{4} d^{2} e^{8} + 3 \, a^{2} b^{3} d e^{9} - a^{3} b^{2} e^{10}}\right )} \sqrt {b x + a}}{105 \, {\left (b^{2} d + {\left (b x + a\right )} b e - a b e\right )}^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^{5/2}}{{\left (d+e\,x\right )}^{9/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________